<template>
  <div class="home-recommend">
    <div class="home-recommend-item" v-for="(item, index) in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      recommends: {
        type: Array,
        default() {
          return []
        }
      }
    }

  }
</script>

<style>
.home-recommend {
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 5px;
  display: flex;
  background-color: #ffffff;
}
.home-recommend-item {
  flex: 1;
  text-align: center;
}
.home-recommend img {
  width: 65px;
  height: 65px;
  margin-bottom: 10px;
}
.home-recommend-item div {
  color: #000000;
  font-size: 0.75em;
}
</style>